<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    ws = new WebSocket("wss://apiv2.yomcx.com:5200?token=6EEoMQOFyk4=");
    ws.onopen = function() {
        ws . send('{"type":"passenger","event":"order","data":{"order_id":"209","server_type":"4"}}');
    };
    ws.onmessage = function(e) {
        console.log("收到服务端的消息：" + e.data);
    };
    ws.onclose = function(e) {
        console.log("服务已断开" );
    }
</script>